//引入封配置好的axios
import http from '../utils/request.js'

//对同一个表的操作写在同一api文件内   
export default {

    getNoticeByClass(params){

        return http.get("notice/queryCourseNotice?classId="+params)
    },
    deleteNotice(params){
        return http.get("notice/deleteNoticeById?id="+params)
    },
    getNoticeByTitle(title,classId){

        return http.get("notice/seacherByTitle?title="+title+"&classId="+classId)
    },
    // 发布公告
    sendNotice(params){
        return http.post("notice/addNotice",params)
    }

}